#ifndef CSILLAG_HH_
# define CSILLAG_HH_
# include "Gui.hh"
# include "../Network/StateChanged.hh"
# include <QtGui>

class Gui::Csillag: public QWidget {
    Q_OBJECT

	protected: u8 id;

    protected: static QImage img;

    public: Network::StateChanged::StarInfo const si;

    public: Csillag(QWidget* parent, Network::StateChanged::StarInfo const& si);

    protected: virtual void paintEvent(QPaintEvent* ev);

    protected: virtual void mousePressEvent(QMouseEvent* ev);

    signals: void left_clicked(Csillag* star);
    signals: void right_clicked(Csillag* star);

    public: u8 get_id();

    public: Network::StateChanged::StarInfo::PlanetList get_planets();
};

#endif // ndef CSILLAG_HH_
